package com.epam.iunna.bookshop.model;

import java.sql.Date;

public class Order {
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getDaten() {
        return this.date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getUser() {
        return this.user;
    }

    public void setUser(Long user) {
        this.user = user;
    }

    public Boolean getPaymentStatus() {
        return this.paymentStatus;
    }

    public void setPaymentStatus(Boolean paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    
    @Override
    public String toString(){
        StringBuilder orderInfo = new StringBuilder("Order Information:\n");
        orderInfo.append("ID: ").append(id).append("\n");
        orderInfo.append("date of order : ").append(date).append("\n");
        orderInfo.append("User: ").append(user).append("\n");
        orderInfo.append("Pyment status: ").append(paymentStatus).append("\n");
        orderInfo.append("Notes: ").append(notes).append("\n");
        return orderInfo.toString();
    }

    private Long id;
    private Date date;
    private Long user;
    private Boolean paymentStatus;
    private String notes;
    private String address;

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

    }

}
